﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>SEO优化评估系统-芜湖新安中医院</title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <link type="text/css" href="css/jquery-ui.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/jquery-ui.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
        var DialogIframe, ShowIframe, box, doc, temTime;
        $(function () {
            DialogIframe = $("#DialogIframe");
            ShowIframe = $("#ShowIframe");
            DialogIframe.dialog({ bgiframe: true, autoOpen: false, height: 200, width: 200, modal: true, position: 'center',
                'close': function () { ShowIframe.attr('src', ''); }
            });
            box = $("#mainFrame");
            doc = document.documentElement;
            box.load(function () { setAutoHeight(); });
            window.setInterval(setAutoHeight, 200);
            $("#toggle").click(function () {
                var leftmenu = $("#leftNav"), mainbox = $("#mainBox");
                if (this.toggled == true) {
                    leftmenu.css("display", "");
                    this.className = "";
                    this.toggled = false;
                } else {
                    leftmenu.css("display", "none");
                    this.className = "toggled";
                    this.toggled = true;
                    mainbox.css("width", "100%");
                }
            });
        });
        function CreateIframe(title, url, width, height) {
            ShowIframe.attr('src', url);
            DialogIframe.dialog('option', 'height', height);
            DialogIframe.dialog('option', 'width', width);
            DialogIframe.dialog('option', 'title', title);
            DialogIframe.dialog('open');
            temTime = window.setInterval(setFrmAutoHeight, 200);
        }
        function setFrmAutoHeight() {
            var boxdom = ShowIframe.contents().find("#conBox");
            var boxHeight = $(boxdom).outerHeight();
            if (boxHeight > 0) {
                DialogIframe.css('height', boxHeight + "px");
                ShowIframe.attr("height", boxHeight + "px");
                DialogIframe.dialog('option', 'height', boxHeight + 30);
                DialogIframe.dialog('option', 'position', "center");
                clearInterval(temTime);
            } else { }
        }

        function ResetFrmAutoHeight() {
            var boxdom = ShowIframe.contents().find("#conBox");
            var boxHeight = $(boxdom).outerHeight();
            if (boxHeight > 0) {
                DialogIframe.css('height', boxHeight + "px");
                ShowIframe.attr("height", boxHeight + "px");
                DialogIframe.dialog('option', 'height', boxHeight + 30);
                DialogIframe.dialog('option', 'position', "center");
            } else { }
        }

        function setAutoHeight() {
            var nav = $("#Menu"), navcon = nav.find("dl")[0];
            try {
                var boxdom = box.contents().find("body");
                //alert(boxdom.find("body").html());
                boxHeight = boxdom.innerHeight();
                //var boxHeight = Math.min(boxdom.body.scrollHeight,boxdom.documentElement.scrollHeight);
                var boxh = doc.clientHeight - 103 - 50;
                var maxh = Math.max($(navcon).outerHeight(), boxHeight);
                if (boxh < maxh) boxh = maxh;
                nav.css("height", (boxh + "px"));
                box.css("height", (boxh + "px"));
            } catch (e) { }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server" method="post">
    <div id="Header">
        <div class="topinfo">
            <div class="headinfo">
                <img src="images/topico.gif" alt="" />
                您好!
                <asp:Label ID="lblName" runat="server"></asp:Label>
                |
                <asp:Label ID="lblDay" runat="server" Text=""></asp:Label>
                | <a href="javascript:void(0);" onclick="location.href='Default.aspx?type=exit'">
                    退出</a>
            </div>
        </div>
    </div>
    <div id="toggle">
    </div>
    <div id="Body">
        <table id="mainTable">
            <tr>
                <td id="leftNav">
                    <div class="navtit">
                        <img src="images/lnavtit-ico.gif" alt="操作栏目" />操作栏目</div>
                    <div id="Menu" class="mainmenu">
                        <dl>
                            <dt runat="server" id="SEOPanelTitle" visible="false">SEO收录情况</dt>
                            <dd runat="server" id="SEOPanel" visible="false">
                                <ul>
                                    <li runat="server" id="KeywordsSEO" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('KeywordsSEOList.aspx',this.innerHTML)">关键字排名</a> </li>
                                    <li runat="server" id="ArticleSEO" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('ArticleSEOList.aspx',this.innerHTML)">网编文章</a></li>
                                    <li runat="server" id="NewsWebSEOList" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('NewsWebSEOList.aspx',this.innerHTML)">新闻源分析</a></li>
                                </ul>
                            </dd>
                            <dt runat="server" visible="false" id="ReportPanelTitle">统计管理</dt>
                            <dd runat="server" visible="false" id="ReportPanel">
                                <ul>
                                    <li runat="server" visible="false" id="KeywordsReport"><a href="javascript:void(0);" onclick="getPage('KeywordsReport.aspx',this.innerHTML)">
                                        关键字排名对比</a></li>
                                    <li runat="server" visible="false" id="ArticleTypeReportList"><a href="javascript:void(0);" onclick="getPage('ArticleTypeReportList.aspx',this.innerHTML)">
                                        关键字优化量统计</a></li>
                                    <li runat="server" visible="false" id="ArticleReport"><a href="javascript:void(0);" onclick="getPage('ArticleReport.aspx',this.innerHTML)">
                                        文章提成统计</a></li>
                                    <li runat="server" visible="false" id="UserArticleReportList"><a href="javascript:void(0);" onclick="getPage('UserArticleReportList.aspx',this.innerHTML)">
                                        文章收录统计</a></li>
                                </ul>
                            </dd>
                            <dt runat="server" id="SEOConfigPanelTitle" visible="false">SEO配置</dt>
                            <dd runat="server" id="SEOConfigPanel" visible="false">
                                <ul>
                                    <li runat="server" id="Sort" visible="false"><a href="javascript:void(0);" onclick="getPage('SortList.aspx',this.innerHTML)">
                                        关键字分类列表</a> </li>
                                    <li runat="server" id="KeywordsList" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('KeywordsList.aspx',this.innerHTML)">关键字列表</a></li>
                                     <li runat="server" id="TodayKeywordsList" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('TodayKeywordsList.aspx',this.innerHTML)">今日关键字列表</a></li>
                                    <li runat="server" id="MedicalList" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('MedicalList.aspx',this.innerHTML)">医院名称列表</a></li>
                                    <li runat="server" id="NewsWebList" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('NewsWebList.aspx',this.innerHTML)">新闻源列表</a></li>
                                    <li runat="server" id="OurWebList" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('OurWebList.aspx',this.innerHTML)">站内列表</a></li>
                                    <li runat="server" id="DeductWebList" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('DeductWebList.aspx',this.innerHTML)">特殊提成网站</a></li>
                                    <li runat="server" id="FilterWebList" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('FilterWebList.aspx',this.innerHTML)">爬虫过滤网站</a></li>
                                </ul>
                            </dd>
                            <dt runat="server" id="UserPanelTitle" visible="false">用户管理</dt>
                            <dd runat="server" id="UserPanel" visible="false">
                                <ul>
                                    <li runat="server" id="UserType" visible="false"><a href="javascript:void(0);" onclick="getPage('AdminTypeList.aspx',this.innerHTML)">
                                        权限组列表</a></li>
                                    <li runat="server" id="UserList" visible="false"><a href="javascript:void(0);" onclick="getPage('AdminList.aspx',this.innerHTML)">
                                        用户列表</a></li>
                                </ul>
                            </dd>
                            <dt runat="server" id="OtherPanelTitle">其他管理</dt>
                            <dd runat="server" id="OtherPanel">
                                <ul>
                                    <li><a href="javascript:void(0);" onclick="getPage('NoticeList.aspx',this.innerHTML)">
                                        公告信息</a></li>
                                    <li runat="server" id="SysConfig" visible="false"><a href="javascript:void(0);" onclick="getPage('SetConfig.aspx',this.innerHTML)">
                                        系统配置</a></li>
                                    <li runat="server" id="SysRunLogList" visible="false"><a href="javascript:void(0);" onclick="getPage('SysRunLogList.aspx',this.innerHTML)">
                                        抓虫运行情况</a></li>
                                    <li runat="server" id="EditPassword" visible="false"><a href="javascript:void(0);"
                                        onclick="getPage('EditAdminInfo.aspx',this.innerHTML)">修改密码</a></li>
                                </ul>
                            </dd>
                        </dl>
                    </div>
                    <div class="navfoot">
                    </div>
                </td>
                <td id="mainBox">
                    <div class="boxhead">
                        <div>
                            <div>
                                <div id="mainTxt">
                                    管理首页</div>
                            </div>
                        </div>
                    </div>
                    <div id="Container" class="boxbody">
                        <iframe id="mainFrame" scrolling="no" allowtransparency="yes" frameborder="0" src="Welcome.aspx"
                            style="height: 100%"></iframe>
                    </div>
                    <div class="boxfoot">
                        <div>
                            <div>
                            </div>
                        </div>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <div id="Footer">
        <div class="copyrights">
        </div>
    </div>
    <div id="DialogIframe" title="无" style="display: none;">
        <iframe id="ShowIframe" frameborder="0" width="100%" height="100%" scrolling="no"
            allowtransparency="yes"></iframe>
    </div>
    </form>
</body>
</html>
